home *** CD-ROM | disk | FTP | other *** search
- @echo off
- set DOEXIT=0
- :: UMAKE has been replaced by the UCC UMAKE commandlet. This batch file
- :: only serves as a wrapper now to handle special cases.
- if "%1"=="auto" (SHIFT & SET DOEXIT=1)
- if "%1"=="release" goto MakeRelease
- if "%1"=="debug" goto MakeDebug
- if "%2"=="everything" goto MakeMSDEV
- if "%1"=="cpp" goto MakeCPP
- if "%1"=="realclean" goto CleanMSDEV
- ucc.exe umake %1 %2 %3 %4 %5 %6 %7 %8 %9
- goto end
-
- :MakeMSDEV
- :: MSDEV ..\UD.DSW /MAKE "aBuildall - RELEASE"
- ::buildconsole ..\UD.DSW /all /prj="aBuildall" /browseinfo=OFF /cfg="Win32 Release"
- devenv /nologo /build Release ..\UD.SLN
- if "%1"=="cpp" goto end if %ERRORLEVEL%==0 goto ScriptMake goto end
- :ScriptMake
- ucc.exe umake all content
- goto end
-
- :CleanMSDEV
- ucc.exe umake clean
- ::buildconsole ..\ud.dsw /clean /prj="aBuildall" /cfg="Win32 Debug"
- ::buildconsole ..\ud.dsw /clean /prj="aBuildall" /cfg="Win32 Release"
- ::MSDEV ..\UD.DSW /MAKE "aBuildall - DEBUG" /CLEAN
- ::MSDEV ..\UD.DSW /MAKE "aBuildall - RELEASE" /CLEAN
- devenv /clean Release ..\UD.SLN
- for %%V in (*.lib) do echo Cleaning %%V && del /F %%V
- pushd ..
- for /R %%V in (*.cod,*.plg,*.exp,*.ilk) do echo Cleaning %%V && del /F %%V
- for /R /D %%V in (Debug.*,Release.*,dLib.*) do echo Cleaning %%V && RD /S /Q %%V
- popd
- goto end
-
- :MakeRelease
- if exist ogg.dll del ogg.dll
- devenv /nologo /build Release ..\UD.SLN
- goto end
-
- :MakeDebug
- if exist ogg.dll del ogg.dll
- devenv /nologo /build Debug ..\UD.SLN
- goto end
-
- :MakeCPP
- devenv /nologo /build Release /project %2 ..\UD.SLN
- goto end
-
- :: ============================================================================
-
- :: OLD CODE
-
- :: ============================================================================
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- :: ============================================================================
-
- :: ----------------------------------------------------------------------------
- :: Program: UMAKE Batch File
- :: Author: Bob Berry
- :: Contributor: Ray Davis
- :: Revision: 1.1.1
- :: ----------------------------------------------------------------------------
-
- :: ============================================================================
- :: NOTE: 'unreal.ini' refers to whatever configuration file you are using for
- :: your engine developments. This could be "unrealtournament.ini" or
- :: "mycustomgame.ini" or whatever.
- :: ============================================================================
-
- :: ----------------------------------------------------------------------------
- :: REQUIREMENTS:
- :: ----------------------------------------------------------------------------
- ::
- :: In your Unreal\System directory, you should have a file called "mini.ini"
- :: that is a trimmed down version your unreal.ini. The [Editor.EditorEngine]
- :: section should have only the "EditPackages" you need to rebuild this
- :: particular package. i.e. C:\Unreal\System\mini.ini. When you perform a
- :: "UMAKE Create MyProject" (see below), a copy of the mini.ini file is made
- :: to your new package directory and renamed to make.ini. If you wish to
- :: manually create this file, be sure to place it in the appropriate
- :: directory (e.g. "C:\Unreal\MyPackage\make.ini").
- ::
- :: It is not necessary to copy the *entire* unreal.ini file. It is
- :: possible to only include the following sections:
- ::
- :: [Engine.Engine]
- :: EditorEngine=Editor.EditorEngine
- ::
- :: [Core.System]
- :: Paths=../System/*.u
- :: <paths to other content>
- ::
- :: [Editor.EditorEngine]
- :: EditPackages=Core
- :: <other edit packages>
- ::
- :: NOTE: Do NOT put this file in your "classes" directory.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: In your Unreal\System directory, create another file called "makeall.ini"
- :: that is a copy of your unreal.ini (or mini.ini). The [Editor.EditorEngine]
- :: section should have the "EditPackages" you need to rebuild ALL of *your
- :: custom packages*.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: In your Unreal\System directory, create another file called "makefull.ini"
- :: that is a copy of your unreal.ini (or mini.ini). The [Editor.EditorEngine]
- :: section should have the "EditPackages" you need to rebuild *ALL* unreal
- :: packages.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: In your Unreal\System directory, create another file called "mini.ini"
- :: that is a copy of your unreal.ini (or mini.ini). The [Editor.EditorEngine]
- :: section should have the "EditPackages" you need to rebuild *ALL* unreal
- :: packages.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Edit the CONFIG SECTION below to reflect your development environment.
- ::
- :: ----------------------------------------------------------------------------
-
- :: ============================================================================
-
- :: ----------------------------------------------------------------------------
- ::
- :: USAGE: umake.bat <mode> [ucc options]
- ::
- :: <mode> = create|package|all|full|export|import
- :: [ucc options] = options pased directly to ucc.exe (-nobind, -yes, etc)
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 1: "umake.bat Create <package>"
- ::
- :: The Create command will setup a new project. It will first create a new
- :: subdirectory residing under your Unreal directory with the name given in
- :: <package>. It will also create the Classes/Models/Textures/Src/Inc
- :: directories as well. A copy of your %MINIINI% (see above) will be placed
- :: in the new directory and the new EditPackage will be *appended* to it (so
- :: be sure that the EditPackages declarations are the last lines of the file.
- ::
- ::----------------------------------------------------------------------------
- ::
- :: Option 2: "umake.bat MyPackage"
- ::
- :: First will backup the existing "MyPackage.U" file (if it exists) to your
- :: package's root directory. (i.e. C:\UT\MyPackage). It will then rebuild all
- :: "EditPackages" found in the make.ini file located in the package's root
- :: directory.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 3: "umake.bat all [content|everything] [ucc options]"
- ::
- :: First will backup all packages listed in the ALLPACKAGES variable below
- :: (see config section) to your BACKUP directory. It will then rebuild all
- :: "EditPackages" found in your makeall.ini file.
- ::
- :: If 'everything' specified, compiles C++ code first and also compiles content
- :: If 'content' is specified, will compile content before script code
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 4: "umake.bat full -nobind"
- ::
- :: First will backup ALL .U packages (including core.u, engine.u, etc) to
- :: your BACKUP directory. It will then rebuild all "EditPackages" found
- :: in your makefull.ini file. In this example, the "-nobind" parameter will
- :: be passed to the compiler.
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 5: "umake.bat export <texture|sound> [PkgName]"
- ::
- :: The following information applies to both textures and sounds where SRCDIR
- :: is actually "TEXTURESRC" or "SOUNDSRC", and similarly BINDIR is actually
- :: referring to "TEXTUREBIN" or "SOUNDBIN".
- ::
- :: If PkgName is specified, it will export a single package from BINDIR of the
- :: given name to the SRCDIR.
- ::
- :: If PkgName is omitted, this will examine the SRCDIR directory to first
- :: compile a list of package names. Then for each name it will attempt to
- :: locate a package in the BINDIR directory and export it to SRCDIR.
- ::
- :: Ex: "umake.bat export texture MyTextures"
- :: (where MyTextures.utx is in SRCBIN)
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 6: "umake.bat import <texture|sound> [PkgName]"
- ::
- :: The following information applies to both textures and sounds where SRCDIR
- :: is actually "TEXTURESRC" or "SOUNDSRC", and similarly BINDIR is actually
- :: referring to "TEXTUREBIN" or "SOUNDBIN".
- ::
- :: If PkgName is specified, it will import a single package from SRCDIR of the
- :: given name to the BINDIR. This means there should be a directory name in
- :: SRCDIR that corresponds to the package attempting to be created.
- ::
- :: If PkgName is omitted, this will examine the SRCDIR directory to first
- :: compile a list of package names. Then for each name it will import all
- :: content from the SRCDIR and create a package with a corresponding name in
- :: the BINDIR.
- ::
- :: Ex: "umake.bat import texture MyTextures"
- :: (where MyTextures is a directory in SRCBIN)
- ::
- :: ----------------------------------------------------------------------------
- ::
- :: Option 7: "umake.bat [clean|realclean]"
- ::
- :: For each package listed in makeall.ini, delete the existing .U file if there
- :: also exists a directory with the package name along with a /Classes
- :: directory underneath it. (To prevent deletion of .U packages that have no
- :: script, like our mesh packages)
- ::
- :: "realclean" will delete all of the C++ intermediate stuff that VC++ misses
- :: on a project clean. It will then proceed with the standard script cleaning.
- ::
- :: ----------------------------------------------------------------------------
-
-
-
- :: ============================================================================
- :: ----------====+++***[[[/\/\]]] CONFIG SECTION [[[/\/\]]]***+++====----------
- :: ============================================================================
-
- :: The root Unreal development directory (not system)
- set ROOT=..\
-
- :: The name of the .ini file your compiler uses to look for EditPackages
- set UCCINI=UD.ini
-
- :: The location of your mini.ini file
- set MINIINI=.\Mini.ini
-
- :: The location of your content.ini file
- set CONTMAKE=.\Content.ini
-
- :: List all your custom packages here separated by spaces. Packages listed
- :: here will be backed up when a "umake all" is issued.
- :: set ALLPACKAGES=Core.U Engine.U UWindow.U Editor.U Fire.U IpDrv.U IpServer.U UWeb.U DigiView.U UnrealShare.U UnrealI.U Botpack.U ParticleSystems.U SpecialEffects.U DGibMeshes.U DWMeshes.U DCore.U DMessages.U DDebug.U DDecEffectMeshes.U DDecorations.U DDecorations2.U UTATrees2.U DMapComps.U DSkeleton.U DEffects.U DGamePlay.U DChars.U DInterface.U DHUDWindows.U DParticleEditor.U DVoice.U DHacker.U DInventory.U DTerritories.U DBrain.U DVoice.U DIdentities.U DOrderInterface.u DIntroChars.U
-
- :: The executable and parameters. Just the filename, no path.
- rem set MAKECOMMAND=UCC.EXE make -debug %2 %3 %4 %5
- set MAKECOMMAND=UCC.EXE make -warnresolve %2 %3 %4 %5
-
- :: If set to YES, backups of packages will be made before deleting the old
- :: ones. Backups for single project compiles are stored in the project
- :: directory. Backups for "umake all" are stored in the BACKUPDIR specified
- :: below. Options are YES or NO (all caps, no quotes).
- :: NOTE: This can be time consuming if you are working with very large
- :: packages.
- set DOBACKUPS=YES
-
- :: When doing a "umake.bat all", copies of the .u files you are about to
- :: rebuild will be placed in this directory.
- set BACKUPDIR=.\BACKUP
-
- :: Directories containing content source.
- set TEXTURESRC=..\TextureSrc
- set SOUNDSRC=..\SoundSrc
-
- :: Directory containing content binaries.
- set TEXTUREBIN=..\Textures
- set SOUNDBIN=..\Sounds
-
- :: When you are finished configuring, set this variable to "YES". Options are
- :: YES or NO (all caps, no quotes).
- set CONFIGURED=YES
-
- :: Remote debugging semaphore file name. If exists, files built are copied to
- :: the location specified in RDSystem
- set RDSEMAPHORE=RemoteDebug.ini
-
- :: Remote base directory (not system). Set if remote debugging
- set RDBASE=%REMOTEDEBUG%
- :: ============================================================================
- :: ============================================================================
- :: ============================================================================
- :: ------------- YOU SHOULDN'T NEED TO TOUCH ANYTHING BELOW ------------------
- :: ----------------------------------------------------------------------------
- :: --------------- If you do... be careful :) ------------------
- :: ============================================================================
- :: ============================================================================
- :: ============================================================================
-
- if "%CONFIGURED%"=="NO" goto noconfig
-
- :: Ensure we have a .ini file to start with
- if not exist %UCCINI% copy /y %ROOT%\System\default.ini %ROOT%\System\%UCCINI%
-
- :: old version fix, was creating a file named backup, remvoe it
- if exist %BACKUPDIR% if not exist %BACKUPDIR%\nul del /F %BACKUPDIR%
-
- :: Ensure we have a valid backup dir
- if not exist %BACKUPDIR% mkdir %BACKUPDIR%
-
- set PACKAGE=%1
- set SYSTEM=%ROOT%\System
- set ORIGINI=%SYSTEM%\%UCCINI%
- set BACKINI=%SYSTEM%\orig.ini
- set SAFETYINI=%SYSTEM%\%UCCINI%.bak
- set MAKEPROG=%SYSTEM%\%MAKECOMMAND%
-
- set RDSYSTEM=%RDBASE%\SYSTEM
- set RDTEXTURES=%RDBASE%\Textures
- set RDSOUNDS=%RDBASE%\Sounds
-
- set ReturnTag=
-
- if "%1"=="" goto usage
- if "%1"=="all" goto all
- if "%1"=="full" goto full
- if "%1"=="create" goto create
- if "%1"=="export" goto export
- if "%1"=="import" goto import
- if "%1"=="content" goto content
- if "%1"=="clean" goto clean
- if "%1"=="realclean" goto realclean
- goto pbuild
-
- :: ----------------------------------------------------------------------------
- :: ------------------------ CREATE NEW PACKAGE---------------------------------
- :: ----------------------------------------------------------------------------
-
- :create
- if "%2"=="" goto crtusage
- if not exist %MINIINI% goto miniini
- set NEWPKG=%2%
- set PRJPATH=%ROOT%\%NEWPKG%
- xcopy /q /s /t /I . %PRJPATH%\Classes
- xcopy /q /s /t /I . %PRJPATH%\Models
- xcopy /q /s /t /I . %PRJPATH%\Textures
- xcopy /q /s /t /I . %PRJPATH%\Source
- xcopy /q /s /t /I . %PRJPATH%\Include
- xcopy /q /s /t /I . %PRJPATH%\Resource
- copy %MINIINI% %PRJPATH%\make.ini
- echo EditPackages=%NEWPKG%>>%PRJPATH%\make.ini
- @echo.
- echo Package structure for %NEWPKG% created.
- @echo.
- goto end
-
- :: ----------------------------------------------------------------------------
- :: ------------------------ REBUILD SPECIFIC PACKAGE---------------------------
- :: ----------------------------------------------------------------------------
-
- :pbuild
- set UFILE=%PACKAGE%.U
- set PRJPATH=%ROOT%\%PACKAGE%
- set MAKEINI=%PRJPATH%\make.ini
- goto inicheck
-
-
- :: ----------------------------------------------------------------------------
- :: ------------------------ REBUILD ALL CUSTOM PACKAGES------------------------
- :: ----------------------------------------------------------------------------
-
- :all
- if "%2"=="everything" goto MakeMSDEV
- if "%2"=="content" goto MakeALLCnt
- goto skip
- :contmake
- move /y %BACKINI% %ORIGINI%
- :skip
- set MAKEINI=%SYSTEM%\makeall.ini
- goto inicheck
-
- :MakeMSDEV
- MSDEV ..\UD.DSW /MAKE "aBuildall - RELEASE"
- if %ERRORLEVEL%==0 goto MakeAllCnt
- goto end
-
- :: ----------------------------------------------------------------------------
- :: ---------------------- REBUILD ALL UNREAL PACKAGES--------------------------
- :: ----------------------------------------------------------------------------
-
- :full
- set MAKEINI=%SYSTEM%\makefull.ini
- goto inicheck
-
- :: ----------------------------------------------------------------------------
- :: ------------------------- CHECK FOR INI FILES ------------------------------
- :: ----------------------------------------------------------------------------
-
- :inicheck
- if not exist %MAKEINI% goto makeini
- if not exist %ORIGINI% goto origini
-
- :: Go straight to "make" if we're not doing backups.
- if NOT "%DOBACKUPS%"=="YES" goto rmpacks
- if "%PACKAGE%"=="all" goto allback
- if "%PACKAGE%"=="full" goto fullback
- goto backup
-
- :: ----------------------------------------------------------------------------
- :: -------------------- BACKUP OF PACKAGES TO BE BUILT ------------------------
- :: ----------------------------------------------------------------------------
-
- :fullback
- copy /y %SYSTEM%\*.U %SYSTEM%\BACKUP
- goto rmfullpkg
-
- :allback
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U (
- copy /y %SYSTEM%\%%V.U %BACKUPDIR%
- )
- )
- goto rmallpkg
-
- :backup
- if exist %SYSTEM%\%UFILE% copy /y %SYSTEM%\%UFILE% %PRJPATH%
- goto rmpkg
-
- :: ----------------------------------------------------------------------------
- :: ----------------- REMOVE PACkAGES TO BE REBUILT ----------------------------
- :: ----------------------------------------------------------------------------
-
- :rmpacks
- if "%PACKAGE%"=="all" goto rmallpkg
- if "%PACKAGE%"=="full" goto rmfullpkg
- goto rmpkg
-
- :rmfullpkg
- for %%V IN (%SYSTEM%\*.U) DO del %%V
- goto make
-
- :rmallpkg
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U (
- if exist %ROOT%\%%V\Classes (
- echo Cleaning %%V && del /F %SYSTEM%\%%V.U
- )
- )
- )
- goto make
-
- :rmpkg
- if exist %SYSTEM%\%UFILE% del %SYSTEM%\%UFILE%
- goto make
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- EXPORT -------------------------------------
- :: ----------------------------------------------------------------------------
-
- :export
- if "%2"=="texture" goto ExpTex
- if "%2"=="sound" goto ExpSnd
- goto MissCntType
-
- :ExpTex
- set SRCDIR=%TEXTURESRC%
- set BINDIR=%TEXTUREBIN%
- set EXT=UTX
- set EXP=texture
- goto ExpContent
-
- :ExpSnd
- set SRCDIR=%SOUNDSRC%
- set BINDIR=%SOUNDBIN%
- set EXT=UAX
- set EXP=sound
- goto ExpContent
-
- :ExpContent
- if "%3"=="" goto ExpCntALL
- if NOT exist %BINDIR%\%3.%EXT% echo. && echo %BINDIR%\%3 does not exist && goto MissCntType
- ucc pkg export %EXP% %BINDIR%\%3 %SRCDIR%\%3 -QUIET
- goto end
-
- :ExpCntALL
- echo Exporting ALL %EXP% texture packages...
- for /D %%V in (%SRCDIR%\*.*) do (
- if exist %BINDIR%\%%~nV.%EXT% (
- ucc pkg export %EXP% %BINDIR%\%%~nV %SRCDIR%\%%~nV -QUIET
- )
- )
- goto end
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- IMPORT -------------------------------------
- :: ----------------------------------------------------------------------------
-
- :import
- move /y %ORIGINI% %BACKINI%
- copy %CONTMAKE% %ORIGINI%
- if "%2"=="texture" goto ImpTex
- if "%2"=="sound" goto ImpSnd
- goto MissCntType
-
- :: -- umake all entry
- :: -- has to reset make command to not send "content" to ucc
- :: -- must first run a ucc make to make sure initial packages are built
- :MakeAllCnt
- set MAKECOMMAND=UCC.EXE make %3 %4 %5 %6
- set MAKINGALL=1
- :: added by JbP to delete packages (sorry :P)
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U if exist %SYSTEM%\..\%%V\nul del %SYSTEM%\%%V.U
- )
- move /y %ORIGINI% %BACKINI%
- copy %CONTMAKE% %ORIGINI%
- %MAKECOMMAND%
- goto ImpTex
-
- :ImpTex
- set SRCDIR=%TEXTURESRC%
- set BINDIR=%TEXTUREBIN%
- set RDBIN=%RDTEXTURES%
- set EXT=UTX
- set IMP=texture
- goto ImpContent
-
- :ImpSndMake
- set CONTMAKE=1
- goto ImpSnd
-
- :ImpSnd
- set SRCDIR=%SOUNDSRC%
- set BINDIR=%SOUNDBIN%
- set RDBIN=%RDSOUNDS%
- set MAKINGALL=0
- set EXT=UAX
- set IMP=sound
- goto ImpContent
-
- :ImpContent
- if "%3"=="" goto ImpCntALL
- if NOT exist %SRCDIR%\%3\nul (
- echo. && echo %SRCDIR%\%3\nul does not exist && goto MissCntType
- )
- ucc pkg import %IMP% %3 %SRCDIR%\%3 -QUIET && move /y %3.%EXT% %BINDIR%
- if "%MAKINGALL%"=="1" goto ImpSndMake
- if "%CONTMAKE%"=="1" goto contmake
- move /y %BACKINI% %ORIGINI%
- goto RDCheck
- goto end
-
- :ImpCntALL
- echo Building ALL %IMP% packages...
- for /D %%V in (%SRCDIR%\*.*) do (
- ucc pkg import %IMP% %%~nV %SRCDIR%\%%~nV -QUIET && move /y %%~nV.%EXT% %BINDIR%
- )
- if "%MAKINGALL%"=="1" goto ImpSndMake
- if "%CONTMAKE%"=="1" goto contmake
- move /y %BACKINI% %ORIGINI%
- goto RDCheck
- goto end
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- COMPILE --------------------------------------
- :: ----------------------------------------------------------------------------
-
- :make
- move /y %ORIGINI% %BACKINI%
- copy %BACKINI% %SAFETYINI%
- copy %MAKEINI% %ORIGINI%
- echo Compiling...
- %MAKEPROG%
- move /y %BACKINI% %ORIGINI%
- goto RDCheck
- goto end
-
- :: ----------------------------------------------------------------------------
- :: -------------------------- REMOTE DEBUG CHECK ------------------------------
- :: ----------------------------------------------------------------------------
-
- :RDCheck
- if exist %SYSTEM%\%RDSEMAPHORE% goto remotedebug
- goto end
-
- :remotedebug
- if "%1"=="all" goto RDCopyAll
- if "%1"=="import" goto RDImpCheck
- goto RDCopySingle
-
- :RDImpCheck
- if "%3"=="" goto RDImpCopyAll
- goto RDImpCopySingle
-
- :RDImpCopyAll
- for %%V in (%BINDIR%\*.%EXT%) do copy /y %%V %RDBIN%
- goto end
-
- :RDImpCopySingle
- if exist %BINDIR%\%3.%EXT% copy /y %BINDIR%\%3.%EXT% %RDBIN%
- goto end
-
- :RDCopyAll
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U copy /y %SYSTEM%\%%V.U %RDSYSTEM%
- )
- goto end
-
- :RDCopySingle
- if exist %SYSTEM%\%UFILE% copy /y %SYSTEM%\%UFILE% %RDSYSTEM%
- goto end
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- REALCLEAN ------------------------------------
- :: ----------------------------------------------------------------------------
- :realclean
- for %%V in (*.lib) do echo Cleaning %%V && del /F %%V
-
- if exist %BACKUPDIR% pushd %BACKUPDIR%
- for %%V in (*.U) do echo Cleaning %%V && del /F %%V
- popd
- if exist %BACKUPDIR% rd %BACKUPDIR%
-
- pushd ..
- for /R %%V in (*.cod,*.plg,*.exp,*.ilk) do echo Cleaning %%V && del /F %%V
- for /R /D %%V in (Debug.*,Release.*,dLib.*) do echo Cleaning %%V && RD /S /Q %%V
- popd
-
- :: (falls down into clean)
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- CLEAN ----------------------------------------
- :: ----------------------------------------------------------------------------
-
- :clean
- if "%DOBACKUPS%"=="YES" if "%1" NEQ "realclean" (
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U (
- copy /y %SYSTEM%\%%V.U %SYSTEM%\%BACKUPDIR%
- )
- )
- )
- for /F "tokens=2* usebackq delims==" %%V in (`grep -i Editpackages= makeall.ini`) DO (
- if exist %SYSTEM%\%%V.U (
- if exist %ROOT%\%%V\Classes (
- echo Cleaning %%V && del /F %SYSTEM%\%%V.U
- )
- )
- )
- goto end
-
- :: ----------------------------------------------------------------------------
- :: --------------------------- ERRORS ---------------------------------------
- :: ----------------------------------------------------------------------------
-
- :noconfig
- @echo.
- echo You MUST configure this program before using. Edit this batch file in
- echo your favorite text editor and read the instructions thoroughly.
- echo Failure to do so could result in damage to your Unreal environment.
- @echo.
- goto end
-
- :usage
- @echo.
- echo "Usage: %0 <create|packagename|all|full> [ucc options]"
- @echo.
- goto end
-
- :MissCntType
- @echo.
- echo "Usage: %0 <import|export> <sound|texture> [PkgName]"
- @echo.
- goto end
-
- :crtusage
- @echo.
- echo "Usage: %0 create <packagename> [dependency1] [dependency2] [...]"
- @echo.
- goto end
-
- :CntUsage
- @echo.
- echo "Usage: %0 content <textures|sounds|all>"
- @echo.
- goto end
-
- :makeini
- @echo.
- echo Can't locate %MAKEINI%. Please check your configuration by editing the
- echo cofig section of this batch file.
- @echo.
- goto end
-
- :origini
- @echo.
- echo Can't locate %ORIGINI%. Please check your configuration by editing the
- echo config section of this batch file.
- @echo.
- goto end
-
- :miniini
- @echo.
- echo Can't locate %MINIINI%. Please check your configuration by editing the
- echo cofig section of this batch file.
- @echo.
- goto end
-
- :end
- if %DOEXIT%==1 exit %ERRORLEVEL%
-